//
//  VersionItem.m
//  CoolMove
//
//  Created by CA on 15/4/27.
//  Copyright (c) 2015年 CA. All rights reserved.
//

#import "VersionItem.h"

@implementation VersionItem

- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    if (self) {
        if (![dictionary isKindOfClass:[NSDictionary class]]) {
            _downloadPath = @"";
            _remark = @"";
            _version = @"";
            _versionDateTime = @"";
        } else {
            _downloadPath = dictionary[@"Path"];
            _remark = dictionary[@"Remark"];
            _version = dictionary[@"Version"];
            _versionDateTime = dictionary[@"VersionDateTime"];
        }
        
    }
    return self;
}

@end
